.main-box {
  user-select: none;
  margin: 60px auto;
  box-shadow: 0 0 14px 0 rgb(0 0 0 / 10%);
  width: 375px;
  min-height: 667px;
  cursor: pointer;
  background-color: #f3f3f3;
  line-height: 0;
  .operate-box {
    position: relative;
    &:before {
      box-sizing: border-box;
      content: "";
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      z-index: 2;
    }
    &:hover::before {
      border: 1px dashed #155bd4;
    }
    &.active::before {
      border: 2px solid #155bd4;
    }
    &:hover .component-del{
      display: inline-block;
    }
  }
  .main-header {
    text-align: center;
    background: url("./mobile_header.png") no-repeat left center;
    background-size: 100% auto;
    padding-top: 16px;
    line-height: 48px;
  }
  .component-box {
    position: relative;
    .component-tag {
      position: absolute;
      left: -95px;
      top: 50%;
      margin-top: -12px;
      display: inline-block;
      background-color: #fff;
      width: 80px;
      height: 24px;
      text-align: center;
      line-height: 24px;
      font-size: 12px;
      pointer-events: none;
      box-shadow: 0 2px 4px 0 rgb(0 0 0 / 10%);
      &::after {
        content: "";
        position: absolute;
        width: 0;
        height: 0;
        border: 12px solid;
        border-color: transparent transparent transparent #fff;
        right: -24px;
        top: 0px;
      }
    }
    .component-del {
      display: none;
      position: absolute;
      height: 30px;
      width: 30px;
      right: -30px;
      background: brown;
      top: 5px;
      line-height: 30px;
      text-align: center;
      color: #fff;
      &::before,&::after{
        content: "";
        position: absolute;
        width: 1px;
        height: 16px;
        background-color: #fff;
        left: 50%;
        top:50%;
        margin-left: -1px;
        margin-top: -8px;
      }
      &::before{
        transform: rotate(45deg);
      }
      &::after{
        transform: rotate(-45deg);
      }
    }
  }
}
